package com.quectel.emp.vo.deptperson.login;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 微信JSAPI登录所需要的参数
 *
 * @author caolu
 * @email louis.cao@quectel.com
 */
@Data
@Schema
public class JSAPILoginVo {


    /**
     * 社区编码
     */
    @Schema(description = "小区编码")
    @NotNull(message = "小区编码不能为空")
    private String villageCode;

    @Schema(description = "平台类型 1支付宝2微信")
    @NotNull(message = "平台类型不能为空")
    private Byte officialAccountsType;

    @Schema(description = "appId")
    @NotNull(message = "appId不能为空")
    private String appId;

    @Schema(description = "微信返回给前端的code 用于获取openId")
    private String code;

}
